﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wuc_QuanLyDiaPhuong.ascx.cs" Inherits="D1.Control.wuc_QuanLyDiaPhuong" %>
<link href="../CSS/style1.css" rel="stylesheet" type="text/css" />
<div class="khungqldp">
<asp:Panel ID="Panel1" runat="server">
<asp:Label ID="Label2" runat="server" Text="QUẢN LÝ ĐỊA PHƯƠNG" ForeColor="#0033CC"></asp:Label>
<br /><br />
<div class="khungbuoi">
<asp:GridView ID="gvDanhSachDiaPhuong" runat="server" AutoGenerateColumns="False" 
    Height="42px" onrowediting="gvDanhSachDiaPhuong_RowEditing" 
        onrowupdating="gvDanhSachDiaPhuong_RowUpdating" CellPadding="4" 
 ForeColor="#333333" GridLines="None" HorizontalAlign="Center" 
        onrowcancelingedit="gvDanhSachDiaPhuong_RowCancelingEdit" 
        CssClass="khungbuoi">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:TemplateField HeaderText="Mã Địa Phương">
            <EditItemTemplate>
                <asp:Label ID="Label3" runat="server" Text='<%# Bind("MaDiaPhuong") %>'></asp:Label>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="lbMa" runat="server" Text='<%# Bind("MaDiaPhuong") %>'></asp:Label>
            </ItemTemplate>
            <ControlStyle BorderColor="#333333" />
            <HeaderStyle BackColor="Blue" BorderColor="#333333" Font-Bold="False" 
                ForeColor="White" HorizontalAlign="Center" Width="150px" />
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tên Địa Phương">
            <EditItemTemplate>
                <asp:TextBox ID="txt1" runat="server" Text='<%# Bind("TenDiaPhuong") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Bind("TenDiaPhuong") %>'></asp:Label>
            </ItemTemplate>
            <HeaderStyle BackColor="Blue" Font-Bold="False" ForeColor="White" 
                HorizontalAlign="Center" Width="150px" />
            <ItemStyle HorizontalAlign="Left" />
        </asp:TemplateField>
        <asp:CommandField ButtonType="Image" CancelImageUrl="~/Icons/cancel.png" 
            EditImageUrl="~/Icons/brush.png"  EditText="" ShowEditButton="True" 
            UpdateImageUrl="~/Icons/checkbox.png" HeaderText="Tùy Chọn" DeleteText="" >
        <HeaderStyle BackColor="Blue" Font-Bold="False" ForeColor="White" 
            Width="100px" />
        <ItemStyle HorizontalAlign="Center" />
        </asp:CommandField>
    </Columns>
    <EditRowStyle BackColor="#2461BF" />
    <EmptyDataTemplate>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </EmptyDataTemplate>
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" 
        HorizontalAlign="Center" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#F5F7FB" />
    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
    <SortedDescendingCellStyle BackColor="#E9EBEF" />
    <SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
</div>
<br />
    <asp:TextBox ID="txtDiaPhuong" runat="server" Height="30px" Width="150px"></asp:TextBox>&nbsp;&nbsp;
    <asp:Button ID="btnThem" runat="server" Text="Thêm" Font-Bold="True" 
        Font-Size="Small" onclick="btnThem_Click" BackColor="#0066FF" 
        ForeColor="White" Height="30px" Width="70px" /><br />
    <asp:Label ID="lbloi" runat="server" ForeColor="Red"></asp:Label>
</asp:Panel>
</div>
